home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / auror300.zip / SAVEALL.AML < prev    next >
Text File  |  1996-07-17  |  797b  |  34 lines

  1. //--------------------------------------------------------------------
  2. // SAVEALL.AML
  3. // Save all Loaded Files, (C) 1993-1996 by nuText Systems
  4. //
  5. // This macro saves all open files within the editor. Open files are
  6. // defined to be all non-hidden loaded buffers with a descriptive buffer
  7. // name (i.e. filename).
  8. //
  9. // Usage:
  10. //
  11. // Select this macro from the Macro List (on the Macro menu), or run it
  12. // from the macro picklist <shift f12>.
  13. //--------------------------------------------------------------------
  14.  
  15. include bootpath "define.aml"
  16.  
  17. buffer = getcurrbuf
  18.  
  19. // cycle through all buffers
  20. if buffer then
  21.   loop
  22.     if getbufname then
  23.       save
  24.     end
  25.     if getprevbuf then
  26.       gotobuf (getprevbuf)
  27.     else
  28.       break
  29.     end
  30.   end
  31. end
  32.  
  33. gotobuf buffer
  34.